package com.zbl.springdemo;

import com.zbl.springdemo.bean.cycle.CycleA;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * @author zbl
 */
@EnableAspectJAutoProxy
@SpringBootApplication
public class SpringDemoApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext applicationContext = SpringApplication.run(SpringDemoApplication.class, args);
//        CycleA cycleA = (CycleA) applicationContext.getBean("cycleA");
//        cycleA.cycle();
    }

}
